/**
 * Notes: 路由配置文件
 * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat)
 * User: CC
 * Date: 2023-08-30 07:00:00
 */

module.exports = {
	'test/test': 'test/test_controller@test',

	// 研发项目管理相关路由
	'research/list': 'research_controller@getResearchList',
	'research/detail': 'research_controller@getResearchDetail',
	'research/graph': 'research_controller@getProjectGraph',
	'research/state_path': 'research_controller@getResearchStatePath',
	'research/state_transition': 'research_controller@transitProjectState',
	'research/create_branch': 'research_controller@createProjectBranch',
	'research/merge_branch': 'research_controller@mergeProjectBranch',
	'research/resource_list': 'research_controller@getResourceList',
	'research/version_list': 'research_controller@getVersionList',
	'research/create_resource': 'research_controller@createResource',
	'research/create_version': 'research_controller@createVersion',
	'research/create_snapshot': 'research_controller@createResourceSnapshot',
	'research/management': 'research_controller@getResearchManagementPage',
	'research/insert': 'research_controller@insertResearch',
	'research/edit': 'research_controller@editResearch',
	'research/delete': 'research_controller@deleteResearch',
	'research/execute_event': 'research_controller@executeEvent',
	'research/upload_document': 'research_controller@uploadDocument',
	'research/delete_document': 'research_controller@deleteDocument',
	'research/document_list': 'research_controller@getDocumentList',
	'research/record_list': 'research_controller@getRecordList',
	'research/add_record': 'research_controller@addRecord',
	'research/add_view_count': 'research_controller@addViewCount',
	'research/delete_resource_batch': 'research_controller@deleteResourceBatch',
	
	// 研发项目路由
	'research_project/create': 'research_project_controller@createProject',
	'research_project/list': 'research_project_controller@getProjectList',
	'research_project/detail': 'research_project_controller@getProjectDetail',
	'research_project/update': 'research_project_controller@updateProject',
	'research_project/delete': 'research_project_controller@deleteProject',
	'research_project/migrate_data': 'research_project_controller@migrateProjectData',

	// 兼容前端的新路由 - 使用小驼峰命名规范
	'plm_research/list': 'research_controller@getResearchList',
	'plm_research/detail': 'research_controller@getResearchDetail',
	'plm_research/create': 'research_controller@insertResearch',
	'plm_research/update': 'research_controller@editResearch',

	// 项目管理路由
	'project/list': 'project_controller@getProjectList',
	'project/detail': 'project_controller@getProjectDetail',
	'project/create': 'project_controller@createProject',
	'project/insert': 'project_controller@createProject',
	'project/edit': 'project_controller@updateProject',
	'project/delete': 'project_controller@deleteProject',
	'project/update': 'project_controller@updateProject',
	'project/status': 'project_controller@updateProjectStatus',
	'project/member/add': 'project_controller@addProjectMember',
	'project/member/remove': 'project_controller@removeProjectMember',
	'project/member/list': 'project_controller@getProjectMembers',
	
	// 兼容性路由 - 为了匹配前端代码
	'plm_project/list': 'project_controller@getProjectList',
	'plm/project_list': 'project_controller@getProjectList',
	'plm/project_reset': 'project_controller@resetProjectData',

	// 项目流程控制器
	'project_flow/list': 'project_flow_controller@getProjectFlowList',
	'project_flow/detail': 'project_flow_controller@getProjectFlowDetail',
	'project_flow/create': 'project_flow_controller@createProjectFlow',
	'project_flow/update': 'project_flow_controller@updateProjectFlow',
	'project_flow/delete': 'project_flow_controller@deleteProjectFlow',
	'project_flow/status': 'project_flow_controller@updateProjectFlowStatus',

	// 文件控制器
	'file/upload': 'file_controller@uploadFile',
	'file/download': 'file_controller@downloadFile',
	'file/list': 'file_controller@getFileList',
	'file/delete': 'file_controller@deleteFile',
	
	// 项目反馈相关路由
	'feedback/add': 'feedback_controller@addFeedback',
	'feedback/update': 'feedback_controller@updateFeedback',
	'feedback/detail': 'feedback_controller@getFeedbackDetail',
	'feedback/list': 'feedback_controller@getFeedbackList',
	'feedback/delete': 'feedback_controller@deleteFeedback',
	'feedback/comment': 'feedback_controller@addFeedbackComment',
	'feedback/create': 'feedback_controller@createFeedback',
	'feedback/status': 'feedback_controller@updateFeedbackStatus',
	
	// 任务管理相关路由
	'task/create': 'task_controller@createTask',
	'task/project_list': 'task_controller@getProjectTasks',
	'task/my_list': 'task_controller@getMyTasks',
	'task/detail': 'task_controller@getTaskDetail',
	'task/update': 'task_controller@updateTask',
	'task/delete': 'task_controller@deleteTask',
	'task/status': 'task_controller@updateTaskStatus',
	'task/batch_create': 'task_controller@batchCreateTasks',
	'task/stats': 'task_controller@getTaskStats',
	'task/assign': 'task_controller@assignTask',
	'task/comment/add': 'task_controller@addTaskComment',
	'task/comment/list': 'task_controller@getTaskComments',
	'task/list': 'task_controller@getTaskList',
	'task/link_flow': 'cross_controller@linkTaskToFlow',
	
	// ==== 跨项目API路由 ====
	// PLM对外提供的API
	'plm_api/project/info': 'cross_controller@getProjectInfo',
	'plm_api/project/list': 'cross_controller@getProjectList',
	'plm_api/research/info': 'cross_controller@getResearchProjectInfo',
	'plm_api/research/list': 'cross_controller@getResearchProjectList',
	'plm_api/task/info': 'cross_controller@getTaskInfo',
	'plm_api/task/list': 'cross_controller@getTaskList',
	'plm_api/project/update_approval': 'cross_controller@updateProjectApproval',
	'plm_api/health': 'cross_controller@healthCheck',

	// 统计分析相关API
	'stat/project': 'stat_controller@getProjectStats',
	'stat/task': 'stat_controller@getTaskStats',
	'stat/user': 'stat_controller@getUserStats',
	'stat/dashboard': 'stat_controller@getDashboard',
	
	// 对外提供跨项目API
	// 项目相关对外API
	'project_list': 'cross_controller@getProjectList',
	'project_detail': 'cross_controller@getProjectDetail',
	'project_status': 'cross_controller@getProjectStatus',
	'project_link_flow': 'cross_controller@linkProjectToFlow',
	'project_link_task': 'cross_controller@linkProjectToTask',
	
	// 任务相关对外API
	'task_list': 'cross_controller@getTaskList',
	'task_detail': 'cross_controller@getTaskDetail',
	'task_create': 'cross_controller@createTask',
	'task_link_flow': 'cross_controller@linkTaskToFlow',
	
	// 管理员相关API
	'admin/login': 'admin/admin_controller@adminLogin',
	'admin/project/list': 'admin/admin_controller@adminProjectList',
	'admin/project/status': 'admin/admin_controller@adminUpdateProjectStatus',
	'admin/user/list': 'admin/admin_controller@adminUserList',
	'admin/user/status': 'admin/admin_controller@adminUpdateUserStatus',
	'admin/user_del': 'admin/admin_user_controller@delUser#demo'
}; 
